package com.corpgovernment.supplier.common;

import tk.mybatis.mapper.entity.Example;

public class DefExample extends Example {
    Criteria defCriteria;

    public DefExample(Class<?> entityClass) {
        super(entityClass);
    }

    @Override
    public Criteria createCriteria() {
        if (defCriteria == null) {
            defCriteria = super.createCriteria();
            defCriteria.andEqualTo("isDeleted", false);
            orderBy("datachangeLasttime").desc();
            orderBy("id");
        }
        return defCriteria;
    }
}
